package com.hopes.bizz.protocol.hj212.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author daijie
 * @version 1.0
 * @date 2023/7/11 10:44
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "hj212协议接收报文日志")
public class ProtocolHj212PacketLogDTO implements Serializable {
    private static final long serialVersionUID = -6813761533733199132L;

    @Schema(description="id")
    private Long id;

    @Schema(description="原始报文")
    private String original;

    @Schema(description="接收时间")
    private Date receiveTime;

    @Schema(description="数据解析结果")
    private Boolean handlerResult;

    @Schema(description="数据解析详情")
    private String handlerDetail;

    @Schema(description="处理后报文")
    private String handlerData;

    @Schema(description="处理耗时（毫秒）")
    private Integer handlerTime;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
